function InfoControl(){}

InfoControl.prototype = new GControl();

InfoControl.prototype.initialize = function(map) {

 var container = document.createElement("div");

 var infoDiv = document.createElement("div");
 this.setButtonStyle_(infoDiv);
 infoDiv.appendChild(document.createTextNode("MANUAL"));
 GEvent.addDomListener(infoDiv,"click",infoFunction);

 container.appendChild(infoDiv);
 map.getContainer().appendChild(container);
 return container;

 function infoFunction(){

  map.clearOverlays();
  var infoIcon=new GIcon(G_DEFAULT_ICON);
      infoIcon.image="/img/dogFace.png";
      infoIcon.iconSize=new GSize(100,100);
  var marker = new GMarker(map.getCenter(),{icon:infoIcon,draggable:true});
  //var marker = new GMarker(map.getCenter());

  var aHTML="<div style='font-style:italic;font-size:small'>";
   aHTML+="A<br><hr>A";
  aHTML+="</div>";

  var bHTML="<div style='font-style:italic;font-size:small'>";
   bHTML+="B<br><hr>B";
  bHTML+="</div>";


  
  map.addOverlay(marker);
   var tabs=new Array();
   tabs[0]=new GInfoWindowTab("A",aHTML);;
   tabs[1]=new GInfoWindowTab("B",bHTML);
  marker.bindInfoWindowTabsHtml(tabs);
    
 }//infoFunction

}//initialize

InfoControl.prototype.getDefaultPosition = function() {
 return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(710, 8));
}

InfoControl.prototype.setButtonStyle_ = function(button) {
 button.style.color = "green" /*"#0000cc"*/;
 button.style.backgroundColor = "white";
 button.style.font = "small Arial";
 button.style.border = "1px solid black";
 button.style.padding = "2px";
 button.style.marginBottom = "3px";
 button.style.textAlign = "center";
 button.style.width = "6em";
 button.style.cursor = "pointer";
}
